package com.job.Gai_Yian.homework0701;

import java.time.temporal.Temporal;

/**
 * @author DELL
 * @version 1.0
 * @since 2022-07-04 00:03:45
 */
public class MyTool2 {
    public static int[] select(int arr[]){
        int i,j,k,temp;
        for (i=0;i<arr.length-1;i++){
            k=i;
            for (j=1+i;j<arr.length;j++){
                if (arr[k]>arr[j]){
                    k=j;
                }
                if (k!=i)
                {
                    temp=arr[k];
                    arr[k]=arr[i];
                    arr[i]=temp;
                }
            }
        }
        return arr;
    }
}
